package cm.mefobe.android.telecomcost.entities;

import java.util.Calendar;

public class WeeklyThreshold extends DayRangeThreshold {

	private Week _week;

	public Week getWeek() {
		return _week;
	}

	public void setWeek(Week _week) {
		this._week = _week;
	}

	public WeeklyThreshold(double d,Week week) {
		super(d,new DayRange(week.getFirstDay(), week.getLastDay()));
		_week = week;
	}

	public WeeklyThreshold() {
	}

	@Override
	public String getType() {
		return "WeeklyThreshold";
	}

	@Override
	public void setType(String type) {
	}

	@Override
	public String toString() {
		return _week.getName() + " ( " + getAmount() + " )";
	}

	public static final String PROP_TYPE = "WeeklyThreshold";	
	public static int[] daysOfWeek = new int[]{Calendar.MONDAY,Calendar.TUESDAY,Calendar.WEDNESDAY,Calendar.THURSDAY,Calendar.FRIDAY,Calendar.SATURDAY,Calendar.SUNDAY};
}
